b3269074b9503957825c5bb1802887a61b8bd9b6,library/javatests/net/openid/appauth/AuthorizationRequestTest.java,AuthorizationRequestTest,testPrompt_withIterableContainingNullValue,#,287
Before Change
@Test(expected = IllegalArgumentException.class)
public void testPrompt_withIterableContainingNullValue() {
ArrayList<String> promptValues = new ArrayList<>();
promptValues.add(AuthorizationRequest.Prompt.SELECT_ACCOUNT);
promptValues.add(null);
mMinimalRequestBuilder.setPromptValues(promptValues).build();
}
@Test(expected = IllegalArgumentException.class)
After Change
@Test(expected = IllegalArgumentException.class)
public void testPrompt_withIterableContainingNullValue() {
mRequestBuilder
.setPromptValues(Arrays.asList(
AuthorizationRequest.Prompt.SELECT_ACCOUNT,
null))
.build();
}
@Test(expected = IllegalArgumentException.class)